defClientCmd(CmdConsts.TestEcho, function(byteBuf, ctx) {
	var channel = ctx.channel();
	var str = readString(byteBuf);
	print(str);
	if ("bye" == str) {
		channel.close();
	} else {
		var wbuf = channel.alloc().buffer();
		writeString(wbuf, str);
		channel.writeAndFlush(wbuf);
	}
});
